---
# tasks file for printers
- name: cups configuration
  ansible.builtin.copy:
    src: cupsd.conf
    dest: /etc/cups/cupsd.conf
  notify:
  - restart cups

- name: update apt cache
  ansible.builtin.apt:
    update_cache: true

- name: system-config-printer
  ansible.builtin.apt:
    name: system-config-printer
    state: latest

- name: kyocera drivers
  ansible.builtin.apt:
    name: kyodialog
    state: latest

- name: pantum drivers
  ansible.builtin.apt:
    name: pantum
    state: latest

#- name: ricoh directory
#  ansible.builtin.file:
#    path: /usr/share/ppd/ricoh
#    state: directory

#- name: ricoh drivers
#  ansible.builtin.copy:
#    src: Ricoh-SP_325DNw-pxlmono-Ricoh.ppd
#    dest: /usr/share/ppd/ricoh

- name: brother drivers
  ansible.builtin.apt:
    pkg:
    - dcpl5500dncupswrapper:i386
    - dcpl5500dnlpr:i386
    - mfcl5700dncupswrapper:i386
    - mfcl5700dnlpr:i386
